Get the foreground color, not the background color.
authorOwen Taylor <otaylor@redhat.com>
Sat, 7 May 2005 19:00:36 +0000 (19:00 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 7 May 2005 19:00:36 +0000 (19:00 +0000)
2005-05-07  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
        the background color.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gdk/gdkgc.c

index 16b3dac9a958286cd2c44ea634f938b2db6c4ecc..8f088b1729c507d58936b7ba38e4c1d133c9a332 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-07  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
+       the background color.
+
 2005-05-07  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): 
index 16b3dac9a958286cd2c44ea634f938b2db6c4ecc..8f088b1729c507d58936b7ba38e4c1d133c9a332 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-07  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
+       the background color.
+
 2005-05-07  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): 
index 16b3dac9a958286cd2c44ea634f938b2db6c4ecc..8f088b1729c507d58936b7ba38e4c1d133c9a332 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-07  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
+       the background color.
+
 2005-05-07  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): 
index 8c386938cc0b8e9559bc85a72dc2f01900bcac52..72115eec27118f1c8c2cb88b1a4d7348bd667995 100644 (file)
@@ -1079,7 +1079,7 @@ gc_get_foreground (GdkGC    *gc,
   color->pixel = priv->bg_pixel;
 
   if (gc->colormap)
-    gdk_colormap_query_color (gc->colormap, priv->bg_pixel, color);
+    gdk_colormap_query_color (gc->colormap, priv->fg_pixel, color);
   else
     g_warning ("No colormap in gc_get_background");
 }